<?php
class DbConnector {
	protected static $db;

	static public function init() {
		if(self::$db == null) {
			self::$db = new DB();
		}
	}
}
DbConnector::init();
?>